<%@page import="com.utils.TimeFormat"%>
<%@ page import="com.dto.FreeRoomDTO" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@include file="/WEB-INF/jsp/common/head.jsp"%>
        <div class="right">
            <div class="location">
                <strong>你现在所在的位置是:</strong>
                <span>我的申请 >> 申请会议室页面 >> 选择会议室</span>
            </div>
            <div class="search">
           		<form method="post" action="${pageContext.request.contextPath }/meeting/apply1.html">
					<input name="method" value="query" class="input-text" type="hidden">
					<span>使用日期：</span>
					<input type="text"  class="input-text" name="queryDate"  readonly="readonly" value="${queryDate}"
					onclick="WdatePicker();" />
					<input type="hidden" name="pageIndex" value="1">
					<input	value="查 询" type="submit" id="searchbutton">					
				</form>
            </div>
            <table class="providerTable" cellpadding="0" cellspacing="0">
                <tr class="firstTr">
                    <th width="15%" rowspan="2">会议室名称</th>
                    <th width="15%"  rowspan="2">会议室位置</th>
                    <th width="10%"  rowspan="2">容纳人数</th>
                    <th width="40%">使用时段</th>
                    <th width="20%" rowspan="2">操作</th>
                </tr>
                <tr class="firstTr">
                    <th width="40%">
                    	<span class="useTime">8</span>|<span class="useTime">9</span>|
                    	<span class="useTime">10</span>|<span class="useTime">11</span>|
                    	<span class="useTime">12</span>|<span class="useTime">13</span>|
                    	<span class="useTime">14</span>|<span class="useTime">15</span>|
                    	<span class="useTime">16</span>|<span class="useTime">17</span>|
                    	<span class="useTime">18</span>|<span class="useTime">19</span>|
                    	<span class="useTime">20</span>|<span class="useTime">21</span>
                    </th>
                </tr>
                   <c:forEach var="room" items="${roomList }">
					<tr>
						<td>
						<span>${room.name }</span>
						</td>
						<td>
						<span>${room.location}</span>
						</td>
						<td>
						<span>${room.number }</span>
						</td>
						<td>
						<span>
						<!-- 00000000000001 --><input type="checkbox" id="useTime" name="useTime" value="1" >
						<!-- 00000000000010 --><input type="checkbox" id="useTime" name="useTime" value="2"  >
						<!-- 00000000000100 --><input type="checkbox" id="useTime" name="useTime" value="4" >
						<!-- 00000000001000 --><input type="checkbox" id="useTime" name="useTime" value="8" >
						<!-- 00000000010000 --><input type="checkbox" id="useTime" name="useTime" value="16">
						<!-- 00000000100000 --><input type="checkbox" id="useTime" name="useTime" value="32"  >
						<!-- 00000001000000 --><input type="checkbox" id="useTime" name="useTime" value="64"  >
						<!-- 00000010000000 --><input type="checkbox" id="useTime" name="useTime" value="128"  >
						<!-- 00000100000000 --><input type="checkbox" id="useTime" name="useTime" value="256"  >
						<!-- 00001000000000 --><input type="checkbox" id="useTime" name="useTime" value="512" >
						<!-- 00010000000000 --><input type="checkbox" id="useTime" name="useTime" value="1024"   >
						<!-- 00100000000000 --><input type="checkbox" id="useTime" name="useTime" value="2048"  >
						<!-- 01000000000000 --><input type="checkbox" id="useTime" name="useTime" value="4096"  >
						<!-- 10000000000000 --><input type="checkbox" id="useTime" name="useTime" value="8192"  >
						</span>
						</td>
						<td>
						<span><a class="applyRoom" href="javascript:;" roomid="${room.id}" usedate="${queryDate}" >申请</a></span>
						</td>
					</tr>
				</c:forEach>
			</table>

			<input type="hidden" id="totalPageCount" value="${totalPageCount}"/>
			<c:import url="/WEB-INF/jsp/common/rollpage.jsp">
				<c:param name="totalCount" value="${totalCount}"/>
				<c:param name="currentPageNo" value="${pageIndex}"/>
				<c:param name="totalPageCount" value="${totalPageCount}"/>
			</c:import>
        </div>
    </section>

<%@include file="/WEB-INF/jsp/common/foot.jsp" %>
<script type="text/javascript" src="${pageContext.request.contextPath }/statics/js/apply1.js"></script>
